

#fastlane add_plugin pgyer
desc "Description of what the lane does"
  lane :abc do
   #newApp
    #buildapp
    gymapp
     #upappstore
end


#新建itunnes connnect上创建一个app
  desc "Description of what the lane does"
  lane :newApp do
  create_app_online(
  username: "quoydv@sina.com",
  app_identifier: "com.jz.finedojzk",
  app_name: "网赚-身边的兼职助手轻松版",
  language: "Simplified Chinese",
  app_version: "1.10",
  sku: "com.jz.finedojzk",
)
end

#编译版本号修改
  desc "Description of what the lane does"
  lane :buildapp do
   #app_store_build_number
   increment_build_number(
   build_number: "87" # set a specific number

   # build_number: app_store_build_number + 1,
   # xcodeproj: "Example.xcodeproj"
   )
end


#打包
 desc "Description of what the lane does"
lane :gymapp do
gym(
 scheme: "jzk",
 clean: true,
 silent:true,
 configuration: "Debug",
#output_directory:"/Users/zuqiu/Desktop/ipa",
#output_name:"hjw",
export_xcargs: "-allowProvisioningUpdates",
export_options:{
method: "development",
#method: "ad-hoc",
#,app-store
exportOptionsPlist:"./ExportOptions.plist"
}
 )

pgyer(api_key: “e289de82dacd1e01a1bb5cdb85f6cbf4”,user_key: “7fccd80683c79a402b78f84d0d25ffa4”)
end


#上传appstore
desc "Description of what the lane does"
  lane :upappstore do
   ENV["DELIVER_ITMSTRANSPORTER_ADDITIONAL_UPLOAD_PARAMETERS"] = "-t DAV"
   deliver(
    username: 'quoydv@sina.com',
    submit_for_review: true,
app_identifier:"com.jz.finedojzk",
    #ipa:"./ss.ipa",
    force: true,
    #metadata_path: "./fastlane/metadata"
)
end

 # produce(
  #  username: 'ou7i38@163.com',
# ["Brazilian Portuguese", "Danish", "Dutch", "English", "English_Australian", "English_CA", "English_UK", "Finnish", "French", "French_CA", "German", "Greek", "Indonesian", "Italian", "Japanese", "Korean", "Malay", "Norwegian", "Portuguese", "Russian", "Simplified Chinese", "Spanish", "Spanish_MX", "Swedish", "Thai", "Traditional Chinese", "Turkish", "Vietnamese"]

 #   app_identifier: 'com.zuqiu.132',
   # app_name: 'MyAppsxddss',
  #  language: 'Japanese',
  #  app_version: '1.0',
   # sku: '123ss'
#  )




#编译版本号修改
#app_store_build_number
  # increment_build_number(
   #build_number: "85" # set a specific number

   # build_number: app_store_build_number + 1,
   # xcodeproj: "Example.xcodeproj"
#)


